How list from a View : Objects new, Objects modified, Objects deleted, ...

Hi,

The question is :

I need list from a View : Objects created, Objects modified, Objects deleted, between two Baselines.
Do you know a script for this, or have ideas ?

Thanks
Pierre Dubarry
PDU - Thu Nov 05 08:31:11 EST 2009

Re: How list from a View : Objects new, Objects modified, Objects deleted, ...
ePiallat - Thu Nov 05 09:17:14 EST 2009

From a view? The trouble is that purged objects won't be displayed, and for this reason can't be marked as deleted.

I know that IRDRMFAO (ex-DOORS TREK) contains an enhanced "compare module" function, that copies comparison results in a new module to solve this problem, but it's a paying solution.

If you don't need to track purged items however, the native "Tools->Compare Module..." seems to match your needs.

Unless you have specific criteria to identify "modified" objects.

Re: How list from a View : Objects new, Objects modified, Objects deleted, ...
PDU - Thu Nov 05 09:40:52 EST 2009

ePiallat - Thu Nov 05 09:17:14 EST 2009
From a view? The trouble is that purged objects won't be displayed, and for this reason can't be marked as deleted.

I know that IRDRMFAO (ex-DOORS TREK) contains an enhanced "compare module" function, that copies comparison results in a new module to solve this problem, but it's a paying solution.

If you don't need to track purged items however, the native "Tools->Compare Module..." seems to match your needs.

Unless you have specific criteria to identify "modified" objects.

Hum,

whith the standard tool i see, object by object, what is changed.

It is not my need.
A need have a list of objects modified, of objects created, ... (quality ingeneer requirement)
This can be done by writting in an attribut avalue as 'created', 'modified', ... .
I am trying modify script 'smartHistoryViewer.dxl' written by Tony Goodman but it seemed to me a little difficult.

(i have modified this script to generate, for each object, a value in an attribut 'version' where i writte Baseline version since this object is unchanged, but this new problem seemed to me more coplex)

Pierre

Re: How list from a View : Objects new, Objects modified, Objects deleted, ...
llandale - Fri Nov 06 14:05:51 EST 2009

You may recall that History is stored in the baseline and reset to nothing in the new module. Thus, the only History record in a baselined module is the single 'baseline' module history.

I don't think you can get all the info you want looking at Created-On and Modified-On attr values, even when you look at the baseline date.

These are the rules vis-a-vis History.
o An object was Created since the last baseline if there exists a create-object history for that object in the current version.
o An object was Modified since the last baseline if it was not created since the last baseline and it has a modify-object history.
o An object was Deleted since the last baseline if it was not created since the last baseline, and
... the following awkward logic which also finds objects that were Undeleted since the last baseline:

Look for delete-object and undelete-object Histories for the object, keeping track of the
    first one of each encountered (if any).
When   delete is found before undelete (if any) then the object was originally undeleted.
When undelete is found before   delete (if any) then the object was originally   deleted.
 
When there is no delete nor undelete history, this object was neither 'deleted' nor 'undeleted' since baseline.
When the object was originally undeleted and is currently   deleted, then it was   'deleted' since baseline.
When the object was originally   deleted and is currently undeleted, then it was 'undeleted' since baseline.
 
Notice that the above logic covers the case where a deleted object was undeleted and then re-deleted;
also for an undeleted object that was deleted then undeleted.  Neither of those two cases will cause
the above logic to flag the object as undeleted/deleted respectively.

I would plow through all objects in the module, looking for at each object's history. Then I'd plow through the entire module history looking for purge-object history. You could forgo each Object's History and just look through the Module History, but then you need clever data structures to keep track of the current delete-undelete-create etc status for each Object.


I didn't investigate, but I wonder what happens when you insert an OLE, do you get 'modifyObject' or 'insertOle' history? When you 'cut' an object, do you get a 'delete' or a 'purge'??

Here is some code to get you going:

 

 

History     hst
HistoryType htype
 
for obj in entire mod do
{  for hst in obj do
   {  htype = hst.type
      if (htype == deleteObject)
             // Here are some HistoryTypes to check for:
    deleteObject
        unDeleteObject
        purgeObject
        createObject
        modifyObject
        insertOLE
        removeOLE
        changeOLE
        pasteOLE
        clipCutObject
        cutOLE
     elseif (htype ==
  }
}
for hst in mod fo
{  htype = hst.type
   if (htype == purgeObject)
   {  AbsNo = hst.absNo ""
      log object AbsNo was purged
   }
}

 


>Louie